<!DOCTYPE html>
<?php session_start(); ?>
<html>
<head>
	<title>DeleteGroup</title>
	<meta charset="UTF-8" />
</head>
<body>
<?php
	if(!isset($_SESSION["session_username"]))
    {
    	header("location:index.php");
    	// echo "good";
    	exit();
	}
	if(!isset($_SESSION["session_admin"])|| ($_SESSION["session_admin"]!=true))
    {
    	// echo "admin";
    	header("location:index.php");
    	exit();
	}
	$name = $_POST["delGname"];
	include_once 'Group.php';
	NormalGroup::deleteGroup($name);
	header("location:UserControl.php");
?>
</body>
</html>